package com.liuxin.zhiyuan.shujuzhongxin.service.impl;

import com.liuxin.zhiyuan.shujuzhongxin.mapper.MajorSubjectMapper;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.liuxin.common.utils.PageUtils;
import com.liuxin.common.utils.Query;

import com.liuxin.zhiyuan.shujuzhongxin.domain.po.MajorSubjectEntity;
import com.liuxin.zhiyuan.shujuzhongxin.service.MajorSubjectService;


@Service
public class MajorSubjectServiceImpl extends ServiceImpl<MajorSubjectMapper, MajorSubjectEntity> implements MajorSubjectService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<MajorSubjectEntity> page = this.page(
                new Query<MajorSubjectEntity>().getPage(params),
                new QueryWrapper<MajorSubjectEntity>()
        );

        return new PageUtils(page);
    }

}